/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package com.crmapi.controller;

import com.crmapi.pojo.Plan;
import com.crmapi.pojo.Result;
import com.crmapi.service.PlanService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>Project: CRMSystem - PlanController</p>
 * <p>Powered by yzc On 2023-11-28 16:57:56</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@RestController
@Slf4j
@RequestMapping("/api_v1.0")
@Api(tags = "回款计划")
public class PlanController extends BaseController{

    @Autowired
    PlanService planService;
    @GetMapping("/plan/list")
    private Result queryPlan( String contractId){
        List<Plan> plans = planService.ByContractId(contractId);
        return Result.success(plans);
    }
}
